package structs

type TaskType string

const (
	TASK_BUY 		TaskType = "buy"
	TASK_SALE 		TaskType = "sale"
	TASK_CANCEL 	TaskType = "cancel"
)


type Queue struct {
	Uuid 			string 			`json:"uuid"`
	Type 			TaskType		`json:"task_type"`
	Data 			struct{
		Id              int   		`json:"id"`
		Uid             int      	`json:"uid"`
		Flag            string   	`json:"flag"`
		CoinFrom        string  	`json:"coin_from"`
		CoinTo          string 		`json:"coin_to"`
		Number          string		`json:"number"`
		NumberAvailable string		`json:"number_available"`
		NumberDeal      string		`json:"number_deal"`
		Price           string		`json:"price"`
		IsNew           string		`json:"is_new"`
		Status          int   		`json:"status"`
		CreateTime      int  		`json:"create_time"`
		UpdateTime      string 		`json:"update_time"`
	}								`json:"data"`
}
